<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: QwtSyntheticPointData Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.1.4</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_qwt_synthetic_point_data.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_qwt_synthetic_point_data-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QwtSyntheticPointData Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>Synthetic point data.  
 <a href="class_qwt_synthetic_point_data.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="qwt__point__data_8h_source.html">qwt_point_data.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for QwtSyntheticPointData:</div>
<div class="dyncontent">
<div class="center"><img src="class_qwt_synthetic_point_data__inherit__graph.png" border="0" usemap="#_qwt_synthetic_point_data_inherit__map" alt="Inheritance graph"/></div>
<map name="_qwt_synthetic_point_data_inherit__map" id="_qwt_synthetic_point_data_inherit__map">
<area shape="rect" id="node2" href="class_qwt_series_data.html" title="QwtSeriesData\&lt; QPointF \&gt;" alt="" coords="5,5,191,32"/>
</map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad2980a20669d9703046e9ded9cacf496"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_synthetic_point_data.html#ad2980a20669d9703046e9ded9cacf496">QwtSyntheticPointData</a> (size_t <a class="el" href="class_qwt_synthetic_point_data.html#a44e4aedcd2eae58e57811c1458ef17a2">size</a>, const <a class="el" href="class_qwt_interval.html">QwtInterval</a> &amp;=<a class="el" href="class_qwt_interval.html">QwtInterval</a>())</td></tr>
<tr class="separator:ad2980a20669d9703046e9ded9cacf496"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a321754c5acac77e0e5685968b1cdfdae"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_synthetic_point_data.html#a321754c5acac77e0e5685968b1cdfdae">setSize</a> (size_t <a class="el" href="class_qwt_synthetic_point_data.html#a44e4aedcd2eae58e57811c1458ef17a2">size</a>)</td></tr>
<tr class="separator:a321754c5acac77e0e5685968b1cdfdae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44e4aedcd2eae58e57811c1458ef17a2"><td class="memItemLeft" align="right" valign="top">virtual size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_synthetic_point_data.html#a44e4aedcd2eae58e57811c1458ef17a2">size</a> () const</td></tr>
<tr class="separator:a44e4aedcd2eae58e57811c1458ef17a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a0b2548b496affcf65272acd86c6700"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_synthetic_point_data.html#a1a0b2548b496affcf65272acd86c6700">setInterval</a> (const <a class="el" href="class_qwt_interval.html">QwtInterval</a> &amp;)</td></tr>
<tr class="separator:a1a0b2548b496affcf65272acd86c6700"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f5943bdb60babe0782a23f6dbca2be2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_interval.html">QwtInterval</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_synthetic_point_data.html#a2f5943bdb60babe0782a23f6dbca2be2">interval</a> () const</td></tr>
<tr class="separator:a2f5943bdb60babe0782a23f6dbca2be2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff24a4e2fd18c8a022bc1a428c0ccf5d"><td class="memItemLeft" align="right" valign="top">virtual QRectF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_synthetic_point_data.html#aff24a4e2fd18c8a022bc1a428c0ccf5d">boundingRect</a> () const</td></tr>
<tr class="memdesc:aff24a4e2fd18c8a022bc1a428c0ccf5d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculate the bounding rectangle.  <a href="#aff24a4e2fd18c8a022bc1a428c0ccf5d">More...</a><br /></td></tr>
<tr class="separator:aff24a4e2fd18c8a022bc1a428c0ccf5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8be76b9c09c80fec51c978ad020aaec"><td class="memItemLeft" align="right" valign="top">virtual QPointF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_synthetic_point_data.html#ac8be76b9c09c80fec51c978ad020aaec">sample</a> (size_t index) const</td></tr>
<tr class="separator:ac8be76b9c09c80fec51c978ad020aaec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af65186bea0056b3f7f46814c61d68c99"><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_synthetic_point_data.html#af65186bea0056b3f7f46814c61d68c99">y</a> (double <a class="el" href="class_qwt_synthetic_point_data.html#a6ace40324b7ee16374afc013fb727042">x</a>) const =0</td></tr>
<tr class="separator:af65186bea0056b3f7f46814c61d68c99"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ace40324b7ee16374afc013fb727042"><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_synthetic_point_data.html#a6ace40324b7ee16374afc013fb727042">x</a> (uint index) const</td></tr>
<tr class="separator:a6ace40324b7ee16374afc013fb727042"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39cc8512e7d8beecde003f7781174b84"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_synthetic_point_data.html#a39cc8512e7d8beecde003f7781174b84">setRectOfInterest</a> (const QRectF &amp;)</td></tr>
<tr class="separator:a39cc8512e7d8beecde003f7781174b84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5eb51b99d54438358c77f34fe74e184e"><td class="memItemLeft" align="right" valign="top">QRectF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_synthetic_point_data.html#a5eb51b99d54438358c77f34fe74e184e">rectOfInterest</a> () const</td></tr>
<tr class="separator:a5eb51b99d54438358c77f34fe74e184e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_qwt_series_data"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_qwt_series_data')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_qwt_series_data.html">QwtSeriesData&lt; QPointF &gt;</a></td></tr>
<tr class="memitem:a3f075340d18fb112a342d74716eb8d9c inherit pub_methods_class_qwt_series_data"><td class="memItemLeft" align="right" valign="top"><a id="a3f075340d18fb112a342d74716eb8d9c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_series_data.html#a3f075340d18fb112a342d74716eb8d9c">QwtSeriesData</a> ()</td></tr>
<tr class="memdesc:a3f075340d18fb112a342d74716eb8d9c inherit pub_methods_class_qwt_series_data"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:a3f075340d18fb112a342d74716eb8d9c inherit pub_methods_class_qwt_series_data"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a841a56f909879d599a385b9c3d046745 inherit pub_methods_class_qwt_series_data"><td class="memItemLeft" align="right" valign="top"><a id="a841a56f909879d599a385b9c3d046745"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_series_data.html#a841a56f909879d599a385b9c3d046745">~QwtSeriesData</a> ()</td></tr>
<tr class="memdesc:a841a56f909879d599a385b9c3d046745 inherit pub_methods_class_qwt_series_data"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a841a56f909879d599a385b9c3d046745 inherit pub_methods_class_qwt_series_data"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_attribs_class_qwt_series_data"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_qwt_series_data')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_qwt_series_data.html">QwtSeriesData&lt; QPointF &gt;</a></td></tr>
<tr class="memitem:a24fbbcb0baa0c728117d2e6764d00414 inherit pro_attribs_class_qwt_series_data"><td class="memItemLeft" align="right" valign="top"><a id="a24fbbcb0baa0c728117d2e6764d00414"></a>
QRectF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_series_data.html#a24fbbcb0baa0c728117d2e6764d00414">d_boundingRect</a></td></tr>
<tr class="memdesc:a24fbbcb0baa0c728117d2e6764d00414 inherit pro_attribs_class_qwt_series_data"><td class="mdescLeft">&#160;</td><td class="mdescRight">Can be used to cache a calculated bounding rectangle. <br /></td></tr>
<tr class="separator:a24fbbcb0baa0c728117d2e6764d00414 inherit pro_attribs_class_qwt_series_data"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Synthetic point data. </p>
<p><a class="el" href="class_qwt_synthetic_point_data.html" title="Synthetic point data. ">QwtSyntheticPointData</a> provides a fixed number of points for an interval. The points are calculated in equidistant steps in x-direction.</p>
<p>If the interval is invalid, the points are calculated for the "rectangle of interest", what normally is the displayed area on the plot canvas. In this mode you get different levels of detail, when zooming in/out.</p>
<dl class="section user"><dt>Example</dt><dd></dd></dl>
<p>The following example shows how to implement a sinus curve.</p>
<div class="fragment"><div class="line"><span class="preprocessor">#include &lt;cmath&gt;</span></div><div class="line"><span class="preprocessor">#include &lt;qwt_series_data.h&gt;</span></div><div class="line"><span class="preprocessor">#include &lt;qwt_plot_curve.h&gt;</span></div><div class="line"><span class="preprocessor">#include &lt;qwt_plot.h&gt;</span></div><div class="line"><span class="preprocessor">#include &lt;qapplication.h&gt;</span></div><div class="line"></div><div class="line"><span class="keyword">class </span>SinusData: <span class="keyword">public</span> <a class="code" href="class_qwt_synthetic_point_data.html">QwtSyntheticPointData</a></div><div class="line">{</div><div class="line"><span class="keyword">public</span>:</div><div class="line">    SinusData():</div><div class="line">        <a class="code" href="class_qwt_synthetic_point_data.html">QwtSyntheticPointData</a>( 100 )</div><div class="line">    {</div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="class_qwt_synthetic_point_data.html#af65186bea0056b3f7f46814c61d68c99">y</a>( <span class="keywordtype">double</span> <a class="code" href="class_qwt_synthetic_point_data.html#a6ace40324b7ee16374afc013fb727042">x</a> )<span class="keyword"> const</span></div><div class="line"><span class="keyword">    </span>{</div><div class="line">        <span class="keywordflow">return</span> qSin( <a class="code" href="class_qwt_synthetic_point_data.html#a6ace40324b7ee16374afc013fb727042">x</a> );</div><div class="line">    }</div><div class="line">};</div><div class="line"></div><div class="line"><span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> **argv)</div><div class="line">{</div><div class="line">    QApplication a( argc, argv );</div><div class="line"></div><div class="line">    <a class="code" href="class_qwt_plot.html">QwtPlot</a> plot;</div><div class="line">    plot.<a class="code" href="class_qwt_plot.html#aba1acef95ee9965520bd0cd1680efdbd">setAxisScale</a>( <a class="code" href="class_qwt_plot.html#a81df699dcf9dde0752c0726b5f31e271ad5566960e78f2473c1a1e853def4c4ac">QwtPlot::xBottom</a>, 0.0, 10.0 );</div><div class="line">    plot.<a class="code" href="class_qwt_plot.html#aba1acef95ee9965520bd0cd1680efdbd">setAxisScale</a>( <a class="code" href="class_qwt_plot.html#a81df699dcf9dde0752c0726b5f31e271a1bb1fbc11e31ebfa8bf72356f6837b17">QwtPlot::yLeft</a>, -1.0, 1.0 );</div><div class="line"></div><div class="line">    <a class="code" href="class_qwt_plot_curve.html">QwtPlotCurve</a> *curve = <span class="keyword">new</span> <a class="code" href="class_qwt_plot_curve.html">QwtPlotCurve</a>( <span class="stringliteral">&quot;y = sin(x)&quot;</span> );</div><div class="line">    curve-&gt;<a class="code" href="class_qwt_series_store.html#add3ce83fe90e976b75a0ebaa79caee4c">setData</a>( <span class="keyword">new</span> SinusData() );</div><div class="line">    curve-&gt;<a class="code" href="class_qwt_plot_item.html#aeb2f676533ccae3436bf578824e2165e">attach</a>( &amp;plot );</div><div class="line"></div><div class="line">    plot.show();</div><div class="line">    <span class="keywordflow">return</span> a.exec();</div><div class="line">}</div></div><!-- fragment --> </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ad2980a20669d9703046e9ded9cacf496"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2980a20669d9703046e9ded9cacf496">&#9670;&nbsp;</a></span>QwtSyntheticPointData()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QwtSyntheticPointData::QwtSyntheticPointData </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_qwt_interval.html">QwtInterval</a> &amp;&#160;</td>
          <td class="paramname"><em>interval</em> = <code><a class="el" href="class_qwt_interval.html">QwtInterval</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructor</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">size</td><td>Number of points </td></tr>
    <tr><td class="paramname">interval</td><td>Bounding interval for the points</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_synthetic_point_data.html#a1a0b2548b496affcf65272acd86c6700">setInterval()</a>, <a class="el" href="class_qwt_synthetic_point_data.html#a321754c5acac77e0e5685968b1cdfdae">setSize()</a> </dd></dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aff24a4e2fd18c8a022bc1a428c0ccf5d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff24a4e2fd18c8a022bc1a428c0ccf5d">&#9670;&nbsp;</a></span>boundingRect()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QRectF QwtSyntheticPointData::boundingRect </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Calculate the bounding rectangle. </p>
<p>This implementation iterates over all points, what could often be implemented much faster using the characteristics of the series. When there are many points it is recommended to overload and reimplement this method using the characteristics of the series ( if possible ).</p>
<dl class="section return"><dt>Returns</dt><dd>Bounding rectangle </dd></dl>

<p>Implements <a class="el" href="class_qwt_series_data.html#aedb969ba51a27d88d26ad7f7cb1c2c7f">QwtSeriesData&lt; QPointF &gt;</a>.</p>

</div>
</div>
<a id="a2f5943bdb60babe0782a23f6dbca2be2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f5943bdb60babe0782a23f6dbca2be2">&#9670;&nbsp;</a></span>interval()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_qwt_interval.html">QwtInterval</a> QwtSyntheticPointData::interval </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>Bounding interval </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_synthetic_point_data.html#a1a0b2548b496affcf65272acd86c6700">setInterval()</a>, <a class="el" href="class_qwt_synthetic_point_data.html#a44e4aedcd2eae58e57811c1458ef17a2">size()</a> </dd></dl>

</div>
</div>
<a id="a5eb51b99d54438358c77f34fe74e184e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5eb51b99d54438358c77f34fe74e184e">&#9670;&nbsp;</a></span>rectOfInterest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QRectF QwtSyntheticPointData::rectOfInterest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>"rectangle of interest" </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_synthetic_point_data.html#a39cc8512e7d8beecde003f7781174b84">setRectOfInterest()</a> </dd></dl>

</div>
</div>
<a id="ac8be76b9c09c80fec51c978ad020aaec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac8be76b9c09c80fec51c978ad020aaec">&#9670;&nbsp;</a></span>sample()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QPointF QwtSyntheticPointData::sample </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Calculate the point from an index</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>Index </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>QPointF(x(index), y(x(index)));</dd></dl>
<dl class="section warning"><dt>Warning</dt><dd>For invalid indices ( index &lt; 0 || index &gt;= <a class="el" href="class_qwt_synthetic_point_data.html#a44e4aedcd2eae58e57811c1458ef17a2">size()</a> ) (0, 0) is returned. </dd></dl>

<p>Implements <a class="el" href="class_qwt_series_data.html#ae8650d16c07c58f01897ab48658a3266">QwtSeriesData&lt; QPointF &gt;</a>.</p>

</div>
</div>
<a id="a1a0b2548b496affcf65272acd86c6700"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a0b2548b496affcf65272acd86c6700">&#9670;&nbsp;</a></span>setInterval()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtSyntheticPointData::setInterval </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_qwt_interval.html">QwtInterval</a> &amp;&#160;</td>
          <td class="paramname"><em>interval</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the bounding interval</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">interval</td><td>Interval </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_synthetic_point_data.html#a2f5943bdb60babe0782a23f6dbca2be2">interval()</a>, <a class="el" href="class_qwt_synthetic_point_data.html#a321754c5acac77e0e5685968b1cdfdae">setSize()</a> </dd></dl>

</div>
</div>
<a id="a39cc8512e7d8beecde003f7781174b84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a39cc8512e7d8beecde003f7781174b84">&#9670;&nbsp;</a></span>setRectOfInterest()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QwtSyntheticPointData::setRectOfInterest </td>
          <td>(</td>
          <td class="paramtype">const QRectF &amp;&#160;</td>
          <td class="paramname"><em>rect</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Set a the "rectangle of interest"</p>
<p><a class="el" href="class_qwt_plot_series_item.html" title="Base class for plot items representing a series of samples. ">QwtPlotSeriesItem</a> defines the current area of the plot canvas as "rect of interest" ( <a class="el" href="class_qwt_plot_series_item.html#a890792d0f44e341812b5283c249608b2" title="Update the item to changes of the axes scale division. ">QwtPlotSeriesItem::updateScaleDiv()</a> ).</p>
<p>If <a class="el" href="class_qwt_synthetic_point_data.html#a2f5943bdb60babe0782a23f6dbca2be2">interval()</a>.isValid() == false the x values are calculated in the interval rect.left() -&gt; rect.right().</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_synthetic_point_data.html#a5eb51b99d54438358c77f34fe74e184e">rectOfInterest()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="class_qwt_series_data.html#a391b4601a7454b2f9582fbc2662d108e">QwtSeriesData&lt; QPointF &gt;</a>.</p>

</div>
</div>
<a id="a321754c5acac77e0e5685968b1cdfdae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a321754c5acac77e0e5685968b1cdfdae">&#9670;&nbsp;</a></span>setSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtSyntheticPointData::setSize </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Change the number of points</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">size</td><td>Number of points </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_synthetic_point_data.html#a44e4aedcd2eae58e57811c1458ef17a2">size()</a>, <a class="el" href="class_qwt_synthetic_point_data.html#a1a0b2548b496affcf65272acd86c6700">setInterval()</a> </dd></dl>

</div>
</div>
<a id="a44e4aedcd2eae58e57811c1458ef17a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a44e4aedcd2eae58e57811c1458ef17a2">&#9670;&nbsp;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t QwtSyntheticPointData::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>Number of points </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_synthetic_point_data.html#a321754c5acac77e0e5685968b1cdfdae">setSize()</a>, <a class="el" href="class_qwt_synthetic_point_data.html#a2f5943bdb60babe0782a23f6dbca2be2">interval()</a> </dd></dl>

<p>Implements <a class="el" href="class_qwt_series_data.html#a3cfe5b26fc55a887ac85b0103ae80a3e">QwtSeriesData&lt; QPointF &gt;</a>.</p>

</div>
</div>
<a id="a6ace40324b7ee16374afc013fb727042"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ace40324b7ee16374afc013fb727042">&#9670;&nbsp;</a></span>x()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double QwtSyntheticPointData::x </td>
          <td>(</td>
          <td class="paramtype">uint&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Calculate a x-value from an index</p>
<p>x values are calculated by dividing an interval into equidistant steps. If !interval().isValid() the interval is calculated from the "rectangle of interest".</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>Index of the requested point </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Calculated x coordinate</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_synthetic_point_data.html#a2f5943bdb60babe0782a23f6dbca2be2">interval()</a>, <a class="el" href="class_qwt_synthetic_point_data.html#a5eb51b99d54438358c77f34fe74e184e">rectOfInterest()</a>, <a class="el" href="class_qwt_synthetic_point_data.html#af65186bea0056b3f7f46814c61d68c99">y()</a> </dd></dl>

</div>
</div>
<a id="af65186bea0056b3f7f46814c61d68c99"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af65186bea0056b3f7f46814c61d68c99">&#9670;&nbsp;</a></span>y()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual double QwtSyntheticPointData::y </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Calculate a y value for a x value</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>x value </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Corresponding y value </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_qwt_synthetic_point_data.html">QwtSyntheticPointData</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
